﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administracao/MasterPage/Administracao.Master" AutoEventWireup="true" CodeBehind="Portas.aspx.cs" Inherits="MadearteNovo.Administracao.Pages.Portas" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../Styles/cssPortas.min.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Barra" runat="server">
    <asp:PlaceHolder runat="server" ID="placeholder"></asp:PlaceHolder>
    <section id="sectionPorta">
        <article id="articleAdicionar">
            Adicionar foto
      <asp:FileUpload runat="server" ID="fupPorta" />
            <asp:Button runat="server" ID="btnEnviar" Text="Enviar" OnClick="btnEnviar_Click" />
        </article>
    </section>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Conteudo" runat="server">
    <section id="sectionImagens">
        <<asp:GridView runat="server" ID="grdPortas" ClientIDMode="Static" AutoGenerateColumns="false" ShowHeader="false" AllowPaging="true" PageSize="3"
            OnPageIndexChanging="grdPortas_PageIndexChanging" OnRowCommand="grdPortas_RowCommand" GridLines="Horizontal">
            <Columns>
                <asp:BoundField HeaderText="ID" DataField="Contador" ItemStyle-HorizontalAlign="Center" />
                <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <article class="articleImagem">
                            <img src='<%# DataBinder.Eval(Container.DataItem, "Imagem") %>' height="250" width="300" />
                        </article>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:ButtonField ItemStyle-HorizontalAlign="Center" ButtonType="Image" CommandName="excluir" ImageUrl="/Imagens/Componentes/Excluir.png" />
                <asp:TemplateField Visible="false">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblNome" Text='<%# DataBinder.Eval(Container.DataItem, "NomeImagem") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <br />
        <br />
    </section>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Javascript" runat="server">
</asp:Content>
